from django.conf.urls.defaults import patterns, include, url
import util

urlpatterns = patterns('',
	# Render templates via short path
	(r'^.*?(?P<name>.+\.html)$', 'dev.views.show_template'),

	# Serve static files in place of apache
	(r'^css/(?P<path>.*)$', 'django.views.static.serve', {
		'document_root' : util.rel_path(util.base(__file__), 'media', 'css')
	}),
	(r'^src/(?P<path>.*)$', 'django.views.static.serve', {
		'document_root' : util.rel_path(util.base(__file__), 'media', 'src')
	}),
	(r'^img/(?P<path>.*)$', 'django.views.static.serve', {
		'document_root' : util.rel_path(util.base(__file__), 'media', 'img')
	}),
)
